package test;
import javax.swing.JFrame;
import engine.Camera;
import engine.Game;
import engine.Level;
import engine.LevelFactory;
import engine.LinearLevelManager;

public class Main {
        public static void main(String[] args) {
            LinearLevelManager llm = new LinearLevelManager();
            //llm.addLevel(rml);
            
            //------ testing levelFactory
            

            LevelFactory factory = new MarioLevelFactory();
            factory.createLevel("levels/test.xml");
            
            //----- end
            
            llm.addLevel(factory.createLevel("levels/test.xml"));
            
            Camera c = new TestMarioCamera();
            JFrame f = new JFrame("Game Title");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(new Game(llm, c));
            f.pack();
            f.setVisible(true);
        }
}